import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

// 借阅实体
@Entity()
export class Borrow {

  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  book_id: string;

  @Column()
  reader_id: number;
  
  @Column()
  borrow_date: string;

  @Column()
  back_date: string;

  @Column()
  if_back: string;
}